//
//    JPianinho.java
//    http://code.google.com/p/jpianinho/
//
//    Created on 16 de Maio de 2006, 08:19
//    Copyright (C) 2006  Felix Farias
//
//    This program is free software; you can redistribute it and/or modify
//    it under the terms of the GNU General Public License as published by
//    the Free Software Foundation version 2.
//
//    This program is distributed in the hope that it will be useful,
//    but WITHOUT ANY WARRANTY; without even the implied warranty of
//    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
//    GNU General Public License for more details.
//
//    You should have received a copy of the GNU General Public License along
//    with this program; if not, write to the Free Software Foundation, Inc.,
//    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.


package jpianinho;

import javax.microedition.midlet.*;
import javax.microedition.lcdui.*;
import javax.microedition.media.*;

/**
 *
 * @author felix
 */

public class JPianinho extends MIDlet {
    private Splash splash;
    private JPianinhoCanvas piano;
    private Display display;
    
    public void startApp() {
        display.setCurrent(splash);
    }
    
    public void pauseApp() {}
    
    public void destroyApp(boolean unconditional) {}
    
    /**
     * Creates a new instance of JPianinho
     */
    public JPianinho() {
        splash = new Splash(this);
        piano = new JPianinhoCanvas();
        display = Display.getDisplay(this);
    }
    
    public void startPianinho() {
            display.setCurrent(piano);
    }
    
}
